/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.com.hydroPK.model.skills.firemaking;

import net.com.hydroPK.model.*;
import net.com.hydroPK.model.items.*;

/**
 *
 * @author Zack
 */
public class burnLog {

public static void burn(Player p, int iUsed, int uWith) {
PlayerItems pi = new PlayerItems();

if(iUsed == 1511 && uWith == 590 || iUsed == 590 && uWith == 1511) {
if(p.skillLvl[11] >= 1) {
p.appendExperience(800, 11);
p.requestAnim(733, 2);
pi.deleteItem(p, 1511, pi.getItemSlot(p, 1511), 1);
p.getActionSender().createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10);
p.objectX = p.absX;
p.objectY = p.absY;
p.objectHeight = p.heightLevel;
p.getActionSender().sendMessage(p, "The logs begin to burn.");
p.firedelay = 20;
} else {
p.getActionSender().sendMessage(p, "You need a firemaking level of at least 1 to burn this.");
}
}
if(iUsed == 1513 && uWith == 590 || iUsed == 590 && uWith == 1513) {
if(p.skillLvl[11] >= 75) {
p.appendExperience(8076, 11);
p.requestAnim(733, 2);
pi.deleteItem(p, 1513, pi.getItemSlot(p, 1513), 1);
p.getActionSender().createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10);
p.objectX = p.absX;
p.objectY = p.absY;
p.objectHeight = p.heightLevel;
p.getActionSender().sendMessage(p, "The logs begin to burn.");
p.firedelay = 20;
} else {
p.getActionSender().sendMessage(p, "You need a firemaking level of at least 75 to burn this.");
}
}
if(iUsed == 1515 && uWith == 590 || iUsed == 590 && uWith == 1515) {
if(p.skillLvl[11] >= 60) {
p.appendExperience(4050, 11);
p.requestAnim(733, 2);
pi.deleteItem(p, 1515, pi.getItemSlot(p, 1515), 1);
p.getActionSender().createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10);
p.objectX = p.absX;
p.objectY = p.absY;
p.objectHeight = p.heightLevel;
p.getActionSender().sendMessage(p, "The logs begin to burn.");
p.firedelay = 20;
} else {
p.getActionSender().sendMessage(p, "You need a firemaking level of at least 60 to burn this.");
}
}
if(iUsed == 1517 && uWith == 590 || iUsed == 590 && uWith == 1517) {
if(p.skillLvl[11] >= 45) {
p.appendExperience(2700, 11);
p.requestAnim(733, 2);
pi.deleteItem(p, 1517, pi.getItemSlot(p, 1517), 1);
p.getActionSender().createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10);
p.objectX = p.absX;
p.objectY = p.absY;
p.objectHeight = p.heightLevel;
p.getActionSender().sendMessage(p, "The logs begin to burn.");
p.firedelay = 20;
} else {
p.getActionSender().sendMessage(p, "You need a firemaking level of at least 45 to burn this.");
}
}
if(iUsed == 1519 && uWith == 590 || iUsed == 590 && uWith == 1519) {
if(p.skillLvl[11] >= 30) {
p.appendExperience(1800, 11);
p.requestAnim(733, 2);
pi.deleteItem(p, 1519, pi.getItemSlot(p, 1519), 1);
p.getActionSender().createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10);
p.objectX = p.absX;
p.objectY = p.absY;
p.objectHeight = p.heightLevel;
p.getActionSender().sendMessage(p, "The logs begin to burn.");
p.firedelay = 20;
} else {
p.getActionSender().sendMessage(p, "You need a firemaking level of at least 30 to burn this.");
}
}
if(iUsed == 1521 && uWith == 590 || iUsed == 590 && uWith == 1521) {
if(p.skillLvl[11] >= 15) {
p.appendExperience(1200, 11);
p.requestAnim(733, 2);
pi.deleteItem(p, 1521, pi.getItemSlot(p, 1521), 1);
p.getActionSender().createGlobalObject(2732, p.heightLevel, p.absX, p.absY, 0, 10);
p.objectX = p.absX;
p.objectY = p.absY;
p.objectHeight = p.heightLevel;
p.getActionSender().sendMessage(p, "The logs begin to burn.");
p.firedelay = 20;
} else {
p.getActionSender().sendMessage(p, "You need a firemaking level of at least 15 to burn this.");
}
}
}
}
